//
//  UserHomeModel.h
//  CoolTennisBall
//
//  Created by wsl on 16/1/11.
//  Copyright © 2016年 CoolLang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UserHomeModel : NSObject

@property(copy, nonatomic) NSString *totalCount;
@property(copy, nonatomic) NSString *totalDuration;
@property(copy, nonatomic) NSString *maxSpeed;
@property(copy, nonatomic) NSString *maxScore;
@property(copy, nonatomic) NSString *avgWeekSport;
@property(copy, nonatomic) NSString *userID;
@property(copy, nonatomic) NSString *rankCount;
@property(copy, nonatomic) NSString *headIcon;
@property(copy, nonatomic) NSString *userName;
@property(copy, nonatomic) NSString *address;
@property (nonatomic, strong) NSArray *medalItems;

- (instancetype)initWithDictionary:(NSDictionary *)dic;

- (NSString *)readMedalsString; // 拼接徽章第一次显示完成

@end

@interface MedalItem : NSObject
@property (nonatomic, copy) NSString *createTime;
@property (nonatomic, assign) NSInteger typeIndex;
@property (nonatomic, assign) BOOL firstGet;

- (instancetype)initWithMedalDictionary:(NSDictionary *)medalDictionary;

@end